package com.hh.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hh.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hh.eduservice.entity.vo.CourseVo;
import com.hh.eduservice.entity.vo.PublishVo;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author huhuan
 * @since 2021-10-20
 */
public interface EduCourseService extends IService<EduCourse> {

    String addCourse(CourseVo courseVo);

    HashMap getCourseById(String id, String memberId);

    String updateCourse(CourseVo courseVo);

    PublishVo getPublishMessage(String courseId);

    void publishCourse(String id);

    ArrayList getLimitEduCours();

    List<EduCourse> getCourseByTeacherId(String id);

    HashMap getFrontCourseList(Page pageParam,CourseVo courseVo);
}
